package com.xuecheng.content.controller;

import com.xuecheng.content.dto.CourseCategoryDto;
import com.xuecheng.content.service.CourseCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName CourseCaltgoryController
 * @Description 课程分类相关接口
 * @Author CG
 * @Date 2023/11/22 15:10
 **/
@Api(value = "课程分类查询接口",tags = "课程分类查询接口")
@RestController
public class CourseCaltgoryController {

    @Resource
    private CourseCategoryService courseCategoryService;

    @ApiOperation("分类查询接口")
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryDto> queryTreeNodes(){
        return courseCategoryService.queryTreeNodes("1");
    }
}
